package com.devframe.sysbase.model.base;

import java.io.Serializable;


import com.devframe.sysbase.model.*;
/**
 * This is an object that contains data related to the T_SYS_MENU_FUNC table.
 * Do not modify this class because it will be overwritten if the configuration file
 * related to this class is modified.
 *
 * @hibernate.class
 *  table="T_SYS_MENU_FUNC"
 */

public abstract class BaseTSysMenuFunc  implements Serializable {

	public static String REF = "TSysMenuFunc";
	public static String PROP_FUNC_NAME = "funcName";
	public static String PROP_SORT_NO = "sortNo";
	public static String PROP_MENU = "menu";
	public static String PROP_FUNC_CODE = "funcCode";
	public static String PROP_URL = "url";
    public static String PROP_IS_AJAX = "isAjax";
    public static String PROP_NEED_LOG = "needLog";


	// constructors
	public BaseTSysMenuFunc () {
		initialize();
	}

	/**
	 * Constructor for primary key
	 */
	public BaseTSysMenuFunc (java.lang.String funcCode) {
		this.setFuncCode(funcCode);
		initialize();
	}

	protected void initialize () {}



	private int hashCode = Integer.MIN_VALUE;

	// primary key
	private java.lang.String funcCode;

	// fields
	private java.lang.String funcName;
	private java.lang.Long sortNo;
	private java.lang.String url;
    private java.lang.String isAjax;
    private java.lang.String needLog;

	// many to one
	private TSysMenuStatic menu;



	/**
	 * Return the unique identifier of this class
     * @hibernate.id
     *  generator-class="uuid.hex"
     *  column="FUNC_CODE"
     */
	public java.lang.String getFuncCode () {
		return funcCode;
	}

	/**
	 * Set the unique identifier of this class
	 * @param funcCode the new ID
	 */
	public void setFuncCode (java.lang.String funcCode) {
		this.funcCode = funcCode;
		this.hashCode = Integer.MIN_VALUE;
	}




	/**
	 * Return the value associated with the column: FUNC_NAME
	 */
	public java.lang.String getFuncName () {
		return funcName;
	}

	/**
	 * Set the value related to the column: FUNC_NAME
	 * @param funcName the FUNC_NAME value
	 */
	public void setFuncName (java.lang.String funcName) {
		this.funcName = funcName;
	}



	/**
	 * Return the value associated with the column: SORT_NO
	 */
	public java.lang.Long getSortNo () {
		return sortNo;
	}

	/**
	 * Set the value related to the column: SORT_NO
	 * @param sortNo the SORT_NO value
	 */
	public void setSortNo (java.lang.Long sortNo) {
		this.sortNo = sortNo;
	}



	/**
	 * Return the value associated with the column: URL
	 */
	public java.lang.String getUrl () {
		return url;
	}

	/**
	 * Set the value related to the column: URL
	 * @param url the URL value
	 */
	public void setUrl (java.lang.String url) {
		this.url = url;
	}



	/**
	 * Return the value associated with the column: MENU_CODE
	 */
	public TSysMenuStatic getMenu () {
		return menu;
	}

	/**
	 * Set the value related to the column: MENU_CODE
	 * @param menu the MENU_CODE value
	 */
	public void setMenu (TSysMenuStatic menu) {
		this.menu = menu;
	}




	public boolean equals (Object obj) {
		if (null == obj) return false;
		if (!(obj instanceof TSysMenuFunc)) return false;
		else {
			TSysMenuFunc tSysMenuFunc = (TSysMenuFunc) obj;
			if (null == this.getFuncCode() || null == tSysMenuFunc.getFuncCode()) return false;
			else return (this.getFuncCode().equals(tSysMenuFunc.getFuncCode()));
		}
	}

	public int hashCode () {
		if (Integer.MIN_VALUE == this.hashCode) {
			if (null == this.getFuncCode()) return super.hashCode();
			else {
				String hashStr = this.getClass().getName() + ":" + this.getFuncCode().hashCode();
				this.hashCode = hashStr.hashCode();
			}
		}
		return this.hashCode;
	}


	public String toString () {
		return super.toString();
	}

	public java.lang.String getIsAjax() {
		return isAjax;
	}

	public void setIsAjax(java.lang.String isAjax) {
		this.isAjax = isAjax;
	}

    public java.lang.String getNeedLog() {
        return needLog;
    }

    public void setNeedLog(java.lang.String needLog) {
        this.needLog = needLog;
    }


}